package com.s3.khospitalds.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.s3.khospitalds.entity.Userlogin;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

/**
 * @Author: xw
 * @CreateTime: 2025/2/17
 * @Description: 登录用户
 * @Version: 1.0
 */
@Mapper
@Repository
public interface UserloginMapper extends BaseMapper<Userlogin> {
    @Select("select * from userlogin where (`name` = #{name}  or idCard = #{name}) and password = #{pwd} ")
    public Userlogin findByNameAndPassword(@Param("name") String name,@Param("pwd") String password);
}
